home *** CD-ROM | disk | FTP | other *** search
- Path: harrier.csrv.uidaho.edu!ian9404
- From: ian9404@harrier.csrv.uidaho.edu (Ian Williams)
- Newsgroups: comp.lang.c++
- Subject: Visual C++ Serializing CStrings
- Date: 23 Feb 1996 05:39:36 GMT
- Organization: University of Idaho, Moscow, Idaho
- Distribution: world
- Message-ID: <4gjjuo$poc@newshound.csrv.uidaho.edu>
- NNTP-Posting-Host: harrier.csrv.uidaho.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=US-ASCII
- Content-Transfer-Encoding: 7bit
- X-Newsreader: TIN [version 1.2 PL2]
-
- I am currently learning Visual C++ and have run into a problem, one that is not
- explained in any of the documentation on the CD or the *PATHETIC* 1 (count 'em 1)
- book that came with 2.0.
- No one around here even has worked on Visuall C++ and I don't exactly have the money
- to spend on a $50.00 book, so I'm asking how do you serialize a CString through the
- CArchive default serialization in AppWizard's CDoument?
- Every time I try it gives me a " 'idenitifier' ambigoous" error (one that occurred
- too many times until I ran across the fact that CArchive only serializes 4 variable
- types).
- The CString itself is a member variable of a self-made class as a variable
- which I need to re-assign different string constants to through a dialog box combo
- box list.
-
- Listing of class as follows:
- class CMonster : public CEmpty (base class with one WORD variable type used by many other clases)
- { CString iMonName;
- (..other variables)
- };
-
- It is a global class used by almost every element within the program.
- (By the way, if you couldn't tell, it's for a game) :)
-
- Thanx for any possible tutoring.....
-